import {
	request
} from '@/utils/request.js'
export const apiData = () => {
	return request({
		url: "/api/bizhi/homeBanner",
		method: 'get'
	})
}

export const apiWallNews = (data) => {
	return request({
		url: "/api/bizhi/wallNewsList",
		method: 'get',
		data
	})
}



export const apiRandomWall = () => {
	return request({
		url: "/api/bizhi/randomWall",
		method: 'get'
	})
}




export const apiClassify = (data = {}) => {
	return request({
		url: "/api/bizhi/classify",
		method: 'get',
		data
	})
}




export const getWallList = (data = {}) => {
	return request({
		url: "/api/bizhi/wallList",
		method: 'get',
		data
	})
}



export const getSetupScore = (data = {}) => {
	return request({
		url: "api/bizhi/setupScore",
		method: 'get',
		data
	})
}


export const downloadWall = (data = {}) => {
	return request({
		url: "/api/bizhi/downloadWall",
		method: 'get',
		data
	})
}




export const getDetailWall = (data = {}) => {
	return request({
		url: "/api/bizhi/detailWall",
		method: 'get',
		data
	})
}



export const getUserInfo = () => {
	return request({
		url: "/api/bizhi/userInfo",
		method: 'get',
	})
}




export const getUserWallList = (data = {}) => {
	return request({
		url: "/api/bizhi/userWallList",
		method: 'get',
		data
	})
}




export const getSearchWall = (data = {}) => {
	return request({
		url: "/api/bizhi/searchWall",
		method: 'get',
		data
	})
}


export const getHoroscopeList = (params = {}) => {
	const queryString = Object.keys(params)
		.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
		.join('&');


	return request({
		url: `https://route.showapi.com/872-1?${queryString}&showapi_appid=1563825&showapi_sign=9942ecfadf1c49a3b0be084e99e982ca`,
		method: 'get'
	});
}


export const pairingList = (params = {}) => {
	const queryString = Object.keys(params)
		.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
		.join('&');
	return request({
		url: `https://route.showapi.com/872-2?${queryString}&showapi_appid=1563825&showapi_sign=9942ecfadf1c49a3b0be084e99e982ca`,
		method: 'get'
	});
}